package com.ehotting.edsta.circuitDesign.domain;

import com.ehotting.edsta.circuitDesign.enums.CodeDataTypeEnum;
import com.ehotting.edsta.circuitDesign.enums.DataTypeEnum;
import com.ehotting.edsta.circuitDesign.enums.StateTypeEnum;
import com.ehotting.eaf.core.annotation.Excel;
import com.ehotting.eaf.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 电路属性参数模板对象 es_circuit_code_data_template
 * 
 * @author edsta
 * @date 2023-07-24
 */
public class EsCircuitCodeDataTemplate extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 电路类型编号 */
    @Excel(name = "电路类型编号")
    private Long circuitTypeId;

    private EsCircuitType circuitType;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 编码 */
    @Excel(name = "编码")
    private String code;

    /** 编码类型 */
    @Excel(name = "编码类型")
    private CodeDataTypeEnum type;

    /** 数据类型 */
    @Excel(name = "数据类型")
    private DataTypeEnum dataType;

    /** 状态 */
    @Excel(name = "状态")
    private StateTypeEnum state;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setCircuitTypeId(Long circuitTypeId) 
    {
        this.circuitTypeId = circuitTypeId;
    }

    public Long getCircuitTypeId() 
    {
        return circuitTypeId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setType(CodeDataTypeEnum type)
    {
        this.type = type;
    }

    public CodeDataTypeEnum getType()
    {
        return type;
    }
    public void setDataType(DataTypeEnum dataType)
    {
        this.dataType = dataType;
    }

    public DataTypeEnum getDataType()
    {
        return dataType;
    }
    public void setState(StateTypeEnum state)
    {
        this.state = state;
    }

    public StateTypeEnum getState()
    {
        return state;
    }

    public EsCircuitType getCircuitType() {
        return circuitType;
    }

    public void setCircuitType(EsCircuitType circuitType) {
        this.circuitType = circuitType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("circuitTypeId", getCircuitTypeId())
            .append("name", getName())
            .append("code", getCode())
            .append("type", getType())
            .append("dataType", getDataType())
            .append("state", getState())
            .toString();
    }
}
